import request from "@/utils/request";

export  function addToCart(data){
    return request({
        url:'cart/add-item',
        method:'post',
        data
    })
}

export  function getCartInfo(params){
    return request({
        url:'cart/get-cart-food',
        params
    })
}

// 当付钱或者删除订单之后，需要移除购物车里的商品
export function removeCart(params){
    return request({
        url:'/cart/delete-cart',
        method:'delete',
        params
    })
}